package model

import (
	"LterServer/util"

	"gitee.com/konyshe/gogo"
)

func LoginUser(userName, passwd string) (interface{}, error) {
	passwdMd5 := util.MD5V(passwd)

	return gogo.SQLQueryByMap(
		"",
		"",
		"user",
		"username=\""+userName+"\" and "+"passwd=\""+passwdMd5+"\"",
		"", 0, 1)
}
